package com.nervenets.web.controller.handler.admin.setting;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.TokenParams;
import com.nervenets.web.validation.Type;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class HelpEditParams extends TokenParams {
    @NeedValidation(type = Type.EMPTY, description = "帮助ID，不传为新建，传为修改")
    private long helpId;
    @NeedValidation(type = Type.POSITIVENUMBER, description = "分类Id")
    private long tagId;
    @NeedValidation(type = Type.NOTEMPTY, description = "帮助标题")
    private String title;
    @NeedValidation(type = Type.NOTEMPTY, description = "帮助内容")
    private String content;
    @NeedValidation(type = Type.NOTEMPTY, description = "是否为热门")
    private boolean hot;
    @NeedValidation(type = Type.POSITIVENUMBER, description = "排序，值越大越靠前")
    private int queue;
    @NeedValidation(type = Type.NUMBER, description = "父类ID，不填为顶级")
    private long parentId;
}
